Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 6049525ed33fc04e7cf91310fccaced9b2c84fee


Parents : 60478d6
Author : Ivan <ivan@quad4.io>
Signature : Invalid signer <e46112d44649266d71fe2193e00a4710>, author is <ivan@quad4.io>
Date : 2026-07-04T22:54:42-05:00

chore(ci): update macOS Python dependency installation script by adding Cython installation to prevent build failures for pycodec2

Changes

1 files changed, 10 insertions(+), 2 deletions(-)


Diff

diff --git a/scripts/ci/github-install-macos-x64-python-deps.sh b/scripts/ci/github-install-macos-x64-python-deps.sh
index fb05f114..4aca9462 100755
--- a/scripts/ci/github-install-macos-x64-python-deps.sh
+++ b/scripts/ci/github-install-macos-x64-python-deps.sh
@@ -78,8 +78,16 @@ uv pip install --python "$_PY" \
--python-platform x86_64-apple-darwin \
"numpy==${_NUMPY_VERSION}"
-# Host uv is arm64 (cannot run under arch -x86_64). numpy is a wheel; pycodec2 is
-# built from sdist with --no-build-isolation so the x86_64 venv numpy is reused.
+# pycodec2's sdist imports Cython directly in setup.py but does not declare it
+# under build-system.requires, so --no-build-isolation needs it preinstalled
+# in the target venv or the build fails with "No module named 'Cython'".
+uv pip install --python "$_PY" \
+ --python-platform x86_64-apple-darwin \
+ "Cython>=3.1.4"
+
+# Host uv is arm64 (cannot run under arch -x86_64). numpy/Cython are wheels;
+# pycodec2 is built from sdist with --no-build-isolation so the x86_64 venv's
+# numpy and Cython are reused instead of resolving a fresh isolated build env.
uv pip install --python "$_PY" \
--python-platform x86_64-apple-darwin \
--no-build-isolation \


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────